import React, { Component } from 'react'
import { View, Swiper , SwiperItem, Image } from '@tarojs/components'
import './Banner.scss'
import bannerImage from '../assets/banner.png'

export default class MyComponent extends Component {
  render () {
    return (<View  className='banner'>
        <Swiper
          className='banner__swiper'
          indicatorColor='#999'
          indicatorActiveColor='#333'
        >
          <SwiperItem>
            <Image className='banner__swiper-item' src={bannerImage}/>
          </SwiperItem>
        </Swiper>
      </View>
    )
  }
}
